package com.snail.service.serviceImp;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.snail.mapper.SysUserMapper;
import com.snail.model.pojo.user.SysUser;
import com.snail.service.SysUserService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
@DS("learn-user") // 指定使用 learn-user 数据源
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> implements SysUserService {
    @Override
    public SysUser getUserWithDept(Long userId) {
        return baseMapper.listWithDept(userId);
    }

}
